const http = uni.$u.http
/*发票查询
* @invoiceType 10 - 普票; 20 - 增值税;
* @memberId
* @specialCustomerId crm客户编码
* old
* */
export const queryInvoiceInfoByMemberIdV2 = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/membership/invoice/queryInvoiceInfoByMemberIdV2', params, config)
/* 保存发票 old */
export const saveInvoiceInfo = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/invoice/saveInvoiceInfo', params, config)

/*根据客户信息查询开票信息列表 - 不分页*/
export const queryInvoice = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/crm-invoice/query', params, config)
/*保存或编辑发票信息*/
export const saveOrUpdate = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/crm-invoice/saveOrUpdate', params, config)
/*删除发票信息*/
export const deleteInvoice = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/crm-invoice/delete', params, config)
/* 升级认证会员 */
export const memberCertification = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/memberCertification', params, config)

